package Sun;

import java.util.HashMap;

/**
 * Created by SHANGMAI on 2016/7/4.
 */
public class Transfertime {

    public static String  Transtime(String time64){
        HashMap<String, String> columMap = new HashMap<String, String>();
        columMap.put("+", "00");
        columMap.put("-", "01");
        columMap.put("0", "02");
        columMap.put("1", "03");
        columMap.put("2", "04");
        columMap.put("3", "05");
        columMap.put("4", "06");
        columMap.put("5", "07");
        columMap.put("6", "08");
        columMap.put("7", "09");
        columMap.put("8", "10");
        columMap.put("9", "11");
        columMap.put("A", "12");
        columMap.put("B", "13");
        columMap.put("C", "14");
        columMap.put("D", "15");
        columMap.put("E", "16");
        columMap.put("F", "17");
        columMap.put("G", "18");
        columMap.put("H", "19");
        columMap.put("I", "20");
        columMap.put("J", "21");
        columMap.put("K", "22");
        columMap.put("L", "23");
        columMap.put("M", "24");
        columMap.put("N", "25");
        columMap.put("O", "26");
        columMap.put("P", "27");
        columMap.put("Q", "28");
        columMap.put("R", "29");
        columMap.put("S", "30");
        columMap.put("T", "31");
        columMap.put("U", "32");
        columMap.put("V", "33");
        columMap.put("W", "34");
        columMap.put("X", "35");
        columMap.put("Y", "36");
        columMap.put("Z", "37");
        columMap.put("a", "38");
        columMap.put("b", "39");
        columMap.put("c", "40");
        columMap.put("d", "41");
        columMap.put("e", "42");
        columMap.put("f", "43");
        columMap.put("g", "44");
        columMap.put("h", "45");
        columMap.put("i", "46");
        columMap.put("j", "47");
        columMap.put("k", "48");
        columMap.put("l", "49");
        columMap.put("m", "50");
        columMap.put("n", "51");
        columMap.put("o", "52");
        columMap.put("p", "53");
        columMap.put("q", "54");
        columMap.put("r", "55");
        columMap.put("s", "56");
        columMap.put("t", "57");
        columMap.put("u", "58");
        columMap.put("v", "59");
        columMap.put("w", "60");
        columMap.put("x", "61");
        columMap.put("y", "62");
        columMap.put("z", "63");

        int year = 2008+Integer.valueOf(columMap.get(String.valueOf(time64.charAt(0))));
        String month = columMap.get(String.valueOf(time64.charAt(1)));
        String day = columMap.get(String.valueOf(time64.charAt(2)));
        String h = columMap.get(String.valueOf(time64.charAt(3)));
        String M = columMap.get(String.valueOf(time64.charAt(4)));
        String m = columMap.get(String.valueOf(time64.charAt(5)));
        return year+ "," + month+ "," +day + "," + h + "," + M + "," + m;

    }
}
